#include "ImageManager.h"

void ImageManager::LoadAssets()
{
    Image image;
    image.image.LoadFromFile( "content/gfx/panda.png" );
    image.name = "panda";
    image.image.SetSmooth( false );

    m_images.push_back(image);
}

Image& ImageManager::GetImage(const std::string& name)
{
    for ( unsigned int i = 0; i < m_images.size(); i++ )
    {
        if ( m_images[i].name == name )
        {
            return (m_images[i]);
        }
    }

    return m_images[0];
}
